package week5;

public class CoinFlip {
    public static void main(String[] args) {
        Coin myCoin = new Coin();
        int h = 0;
        int t = 0;

        for (int i = 0; i < 100; i ++){
            myCoin.flip();
            if (myCoin.toString() == "Heads")
                h++;
            else
                t++;
        }

        System.out.println("Heads: " + h);
        System.out.println("Tails: " + t);

    }
}
